import { createStore } from "vuex";

// 引入拆分出去的子模块
import counter from "./modules/counter";
import cart from "./modules/cart";

const store = createStore({
  modules: {
    // key: value
    // key - 模块名
    // value - 模块对象

    counter,
    cart,
  },
});

export default store;
